<?
$artists = $this->trackmodel->get_unique_artists();
//print_r($this);
?>
<form action="<?=site_url('ajax/tracks/add')?>" method="POST" enctype="multipart/form-data" encoding="multipart/form-data">
	<div>
		<label for="add-track-title">Title</label>
		<input id="add-track-title" name="title" class="text_input" type="text" maxlength="255" value=""/>
	</div>
	<div>
		<label for="add-track-artists">Artist</label>
		<select id="add-track-artists" name="artists[]" class="text_input" multiple>
		<? foreach($artists as $artist){ ?>
			<option><?=$artist?></option>
		<? } ?>
		</select>
	</div>
	<div>
		<label for="add-track-file">File</label>
		<input id="add-track-file" name="file" class="text_input" type="file" />
	</div>
</form>
